only date in php

33

  $literal = "1 week ago";
  $date = new DateTime($literal);
  $date->setTime(0,0);

Comments

Submit
0 Comments